]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y: calendar: full date string should be navigable
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 27 Aug 2013 13:44:46 +0000 (15:44 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 28 Aug 2013 17:13:33 +0000 (19:13 +0200)
Also moved the set of label_actor of the menu some lines before,
to improve readability.

https://bugzilla.gnome.org/show_bug.cgi?id=706903

data/theme/gnome-shell.css
js/ui/dateMenu.js

index 015a892d95c0f9dfc52f452d44aae2cdfa40c968..afb1f48e856b4c72645d0e05c3d56ad416fb0914 100644 (file)
@@ -1261,6 +1261,10 @@ StScrollBar StButton#vhandle:active {
     color: #eeeeec;
 }
 
+.datemenu-date-label:focus {
+    background-color: #999999;
+}
+
 .calendar-day-base {
     font-size: 9pt;
     text-align: center;
index 7c1a5977b6403cdf6e01f2281c31cae53fc72e82..bd72a665cd3032689f74f9d49e0edabf01f3a5a7 100644 (file)
@@ -50,6 +50,7 @@ const DateMenuButton = new Lang.Class({
         this.parent(menuAlignment);
 
         this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
+        this.actor.label_actor = this._clockDisplay;
         this.actor.add_actor(this._clockDisplay);
         this.actor.add_style_class_name ('clock-display');
 
@@ -62,9 +63,8 @@ const DateMenuButton = new Lang.Class({
         hbox.add(vbox);
 
         // Date
-        this._date = new St.Label();
-        this.actor.label_actor = this._clockDisplay;
-        this._date.style_class = 'datemenu-date-label';
+        this._date = new St.Label({ style_class: 'datemenu-date-label',
+                                    can_focus: true });
         vbox.add(this._date);
 
         this._eventList = new Calendar.EventsList();